package com.horizon.manage.student.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springblade.core.mp.base.BaseEntity;

/**
 * 学生信息.
 *
 * @author zhaoshb
 * @since 2022/11/28 23:27
 */
@Data
@TableName("horizon_student")
public class Student extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键.
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户id.
     */
    private Long userId;

    /**
     * 学号.
     */
    private String number;

    /**
     * 身份证.
     */
    private String idCardNumber;

    /**
     * 照片地址.
     */
    private String photoUrl;

    /**
     * 学籍编号.
     */
    private String statusNumber;
}
